package com.prs.crm.domain.oa;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * OA综合行政用车申请
 * @author YangHao 2012-5-8 11:18:48
 *
 */
@Entity
@Table(name="oa_VehicleApplications")
public class VehicleApplications extends BaseEntity{
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	/**
	 * 所用车辆
	 */
	@ManyToOne
	private Vehicle vehicle;
	/**
	 * 用车人
	 */
	private String carMan;
	/**
	 * 用车人Id
	 */
	private String carManId;
	/**
	 * 用车事由
	 */
	private String carFor;
	/**
	 * 用车性质
	 */
	private String nature;
	/**
	 * 开始时间
	 */
	private Date startTime;
	/**
	 * 结束时间
	 */
	private Date endTime;
	/**
	 * 里程数
	 */
	private String mileage;
	/**
	 * 状态
	 */
	private String state;
	private String remark;
	@Column(columnDefinition = "Double(11,3) default '0.000'")
	private String otherCost;
	
	private String number;
	private String showState;
	public String getShowState() {
		return showState;
	}
	public void setShowState(String showState) {
		this.showState = showState;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Vehicle getVehicle() {
		return vehicle;
	}
	public void setVehicle(Vehicle vehicle) {
		this.vehicle = vehicle;
	}
	public String getCarMan() {
		return carMan;
	}
	public void setCarMan(String carMan) {
		this.carMan = carMan;
	}
	public String getCarFor() {
		return carFor;
	}
	public void setCarFor(String carFor) {
		this.carFor = carFor;
	}
	public String getNature() {
		return nature;
	}
	public void setNature(String nature) {
		this.nature = nature;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public String getMileage() {
		return mileage;
	}
	public void setMileage(String mileage) {
		this.mileage = mileage;
	}
	public String getCarManId() {
		return carManId;
	}
	public void setCarManId(String carManId) {
		this.carManId = carManId;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getOtherCost() {
		return otherCost;
	}
	public void setOtherCost(String otherCost) {
		this.otherCost = otherCost;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
}
